#include "MEFPImage.h"

CMEFPImage::CMEFPImage() 
{
	iType = "image";
}

CMEFPImage::~CMEFPImage()
{
}

void CMEFPImage::Create(CMEFLayer* aLayer, CMEFPlugin* aParent)
{
	//iGUIEnv = aGUIEnv;
}

void CMEFPImage::Init(const CMEFStringHash& aAttributes)
{
	//const std::string KId = "id";
	//const std::string KUrl = "url";
	//const std::string KX = "x";
	//const std::string KY = "y";
	//const std::string KAlpha = "alpha";
	//std::string url = "";
	//int x = 0;
	//int y = 0;
	//int alpha = 255;

	//int index;
	//if(CMEFUtility::FindAttributeIndex(aAttributes, KUrl, index))
	//{
	//	url = aValues[index];
	//}
	//if(CMEFUtility::FindAttributeIndex(aAttributes, KX, index))
	//{
	//	x = CMEFUtility::GetIntValue(aValues[index]);
	//}
	//if(CMEFUtility::FindAttributeIndex(aAttributes, KY, index))
	//{
	//	y = CMEFUtility::GetIntValue(aValues[index]);
	//}
	//if(CMEFUtility::FindAttributeIndex(aAttributes, KAlpha, index))
	//{
	//	alpha = CMEFUtility::GetIntValue(aValues[index]);
	//}

	//IGUIImage* image = iGUIEnv->addImage(iGUIEnv->getVideoDriver()->getTexture(url.c_str()), position2d<int>(x,y));
	//image->setColor(video::SColor(alpha,255,255,255));
}


void CMEFPImage::Run()
{

}

void CMEFPImage::EventReceived(const CMEFEvent& aEvent)
{

}